<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>HTML5新增标签</title>
</head>
<body>
	<form action="" id="myform"
      oninput="num.value=parseInt(num1.value)+parseInt(num2.value)">
 		<input type="number" id="num1">+
  		<input type="number" id="num2">=
  		<output name="num" for="num1 num2"></output>
 	</form>

</body>
</html>
